package com.andy.config;

import com.andy.filter.CustomGatewayFilter;
import org.springframework.boot.autoconfigure.info.ProjectInfoProperties;
import org.springframework.cloud.gateway.route.RouteLocator;
import org.springframework.cloud.gateway.route.builder.RouteLocatorBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import static io.prometheus.client.Counter.build;

/**
 * 网关路由配置类
 */
//@Configuration
public class GatewayRoutesConfiguration {

//    @Bean
//    public RouteLocator routeLocator(RouteLocatorBuilder builder){
//        return builder.routes().route(r->r
//        .path("/user/**")
//        .uri("lb://admin")
//        .filters(new CustomGatewayFilter()))
//        .id("admin"))
//        .build();
//    }


}
